import request from '@/utils/http'
import type { LoginRequest } from '../types/login.d'

//登录
export function login(params: LoginRequest) {
  return request.post('/login', params);
}

// 获取用户信息
export function getUserInfo() {
  return request.get('/me')
}

export function getToken({ email, userId, key }: any) {
  return request.post('/meeting/getToken', {
    email: email,
    userId: userId,
    key: key
  })
}


